home *** CD-ROM | disk | FTP | other *** search
- "FILE"="Xteq Systems X-Setup Plugin 3.1"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Appearance\Explorer\Shortcuts"
- "NAME"="Extension"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Always display extension for Links (*.LNK)"
- "TEXT 2"="Always display extension for *.PIF files"
- "DESCRIPTION 1"="By default, Windows does never display the extension for LNK and PIF files."
- "DESCRIPTION 2"="By activating this options here, you can force Windows to display the extensions."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to info@xteq.com."
- "COMMENT 2"="Version 1.11"
-
-
-
- Sub Plugin_Initialize
- s=RegReadValue("HKCR\Lnkfile\NeverShowExt")
- if IsEmpty(s)=true then
- SetUIElement 1,true
- end if
-
- s=RegReadValue("HKCR\piffile\NeverShowExt")
- if IsEmpty(s)=true then
- SetUIElement 2,true
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call SwitchMode("LnkFile",true)
- else
- Call SwitchMode("LnkFile",false)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call SwitchMode("piffile",true)
- else
- Call SwitchMode("piffile",false)
- end if
-
- Restart
- End Sub
-
- Sub SwitchMode(fn,show)
- s=RegReadValue("HKCR\" & fn & "\NeverShowExt")
- if IsEmpty(s)=false then
- Call RegDeleteValue("HKCR\" & fn & "\NeverShowExt")
- end if
-
- s=RegReadValue("HKCR\" & fn & "\AlwaysShowExt")
- if IsEmpty(s)=false then
- Call RegDeleteValue("HKCR\" & fn & "\AlwaysShowExt")
- end if
-
-
- if show=true then
- Call RegWriteValue("HKCR\" & fn & "\AlwaysShowExt","",1)
- else
- Call RegWriteValue("HKCR\" & fn & "\NeverShowExt","",1)
- end if
-
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-